package com.william.jdbcplus.generator.entity;

import com.william.jdbcplus.common.annotation.Table;
import com.william.jdbcplus.common.annotation.TableColumn;
import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * excel_report_data_source
 *
 * @author niliwei
 * @date 2020-11-23 10:11:00
 */
@Data
@NoArgsConstructor
@Table(value = "excel_report_data_source", remarks = "excel_report_data_source")
public class ExcelReportDataSource implements Entity {

    @TableId(value = "id", remarks = "", type = IdType.ATOMIC, size = 36)
    private String id;

    @TableColumn(value = "name", remarks = "数据源名称", size = 100)
    private String name;

    @TableColumn(value = "report_id", remarks = "报表_id", size = 100)
    private String reportId;

    @TableColumn(value = "code", remarks = "编码", size = 100)
    private String code;

    @TableColumn(value = "remark", remarks = "备注", size = 200)
    private String remark;

    @TableColumn(value = "db_type", remarks = "数据库类型", size = 10)
    private String dbType;

    @TableColumn(value = "db_driver", remarks = "驱动类", size = 100)
    private String dbDriver;

    @TableColumn(value = "db_url", remarks = "数据源地址", size = 500)
    private String dbUrl;

    @TableColumn(value = "db_username", remarks = "用户名", size = 100)
    private String dbUsername;

    @TableColumn(value = "db_password", remarks = "密码", size = 100)
    private String dbPassword;

    @TableColumn(value = "create_by", remarks = "创建人")
    private String createBy;

    @TableColumn(value = "create_time", remarks = "创建日期")
    private Date createTime;

    @TableColumn(value = "update_by", remarks = "更新人")
    private String updateBy;

    @TableColumn(value = "update_time", remarks = "更新日期")
    private Date updateTime;
}